<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<c:set var="title" scope="request">Server Informations</c:set>
<jsp:include page="/WEB-INF/jsp/inc/head.jsp" />

<h2>Server ID (HashCode)</h2>
<%
	String vServerHash = "inconnu";
	try {
		Class vClass = Class.forName("weblogic.rjvm.LocalRJVM");
		java.lang.reflect.Method vGetLocalRJVM= vClass.getMethod("getLocalRJVM",new Class[]{});
		Object vLocalRJVM = vGetLocalRJVM.invoke(vClass.getClass(),null);
		java.lang.reflect.Method vGetId = vLocalRJVM.getClass().getMethod("getID",new Class[]{});
		Object vId = vGetId.invoke(vLocalRJVM,null);
		java.lang.reflect.Method vGetHashCode = vId.getClass().getMethod("hashCode",new Class[]{});
		Object vHashCode = vGetHashCode.invoke(vId,null);
		vServerHash = vHashCode.toString(); 
	} catch (Exception e){
		vServerHash = e.toString();
	}
%>
<p>Server HashCode : <%=vServerHash%></p>

<h2>Network informations</h2>
<%
java.net.InetAddress vInetAddress = java.net.InetAddress.getLocalHost();
%>
<dl>
	<dt>HostName</dt><dd><%=vInetAddress.getHostName()%></dd>
	<dt>RemoteHostName</dt><dd><%=request.getRemoteHost()%></dd>
	<dt>HostAddress</dt><dd><%=vInetAddress.getHostAddress()%></dd>
	<dt>RemoteHostAddress</dt><dd><%=request.getRemoteAddr()%></dd>
</dl>

<jsp:include page="/WEB-INF/jsp/inc/foot.jsp" />

